﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class DatHangOnlineDTO
    {
        #region "Khai báo các biến"
        private string _maDHOL;
        private string _maTKOL;
        private DateTime _ngayDH;
        private string _hinhThucThanhToan;        
        private string _trangThai;        
        private double _tongTien;        
        #endregion

        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaDHOL
        {
            get { return _maDHOL; }
            set { _maDHOL = value; }
        }
        [DataMember]
        public string MaTKOL
        {
            get { return _maTKOL; }
            set { _maTKOL = value; }
        }
        [DataMember]
        public DateTime NgayDH
        {
            get { return _ngayDH; }
            set { _ngayDH = value; }
        }
        [DataMember]
        public string HinhThucThanhToan
        {
            get { return _hinhThucThanhToan; }
            set { _hinhThucThanhToan = value; }
        }
        [DataMember]
        public string TrangThai
        {
            get { return _trangThai; }
            set { _trangThai = value; }
        }
        [DataMember]
        public double TongTien
        {
            get { return _tongTien; }
            set { _tongTien = value; }
        }
        #endregion

        #region "Khai báo các contructor"
        public DatHangOnlineDTO() { }
        public DatHangOnlineDTO(string madh, string matk, DateTime ngaydathang, string hinhthucthanhtoan, string trangthai, double tongtien)
        {
            MaDHOL = madh;
            MaTKOL = matk;
            NgayDH = ngaydathang;
            HinhThucThanhToan = hinhthucthanhtoan;
            TrangThai = trangthai;
            TongTien = tongtien;
        }
        public DatHangOnlineDTO(DatHangOnlineDTO DatHangOnline)
        {
            this.MaDHOL = DatHangOnline.MaDHOL;
            this.MaTKOL = DatHangOnline.MaTKOL;
            this.NgayDH = DatHangOnline.NgayDH;
            this.HinhThucThanhToan = DatHangOnline.HinhThucThanhToan;
            this.TrangThai = DatHangOnline.TrangThai;
        }
        #endregion
    }
}